package com.ziyue.socket.service.impl;

import com.ziyue.socket.bean.Member;
import com.ziyue.socket.enums.OptionEnum;
import com.ziyue.socket.service.OptionAbstract;
import io.netty.channel.Channel;

import java.util.List;

/**
 * Created by wancheng on 2019/4/18.
 */
public class Send extends OptionAbstract {

    private final OptionEnum OPTION = OptionEnum.SEND;
    /**
     * 发送消息,根据身份的不同发送消息
     *
     * @param channel
     * @param requestBody
     * @return
     */
    @Override
    public Object send(Channel channel, String requestBody) throws Exception {
        List<Member> targetGroups = roomManage.targetGroups(channel);
        this.sendMsg(channels, targetGroups,requestBody,OPTION);
        return null;
    }



    @Override
    public Object get(Channel channel, String requestBody) {
        return null;
    }
}
